<h4>General info</h4>

<p>
    This is an example page to demonstrate how this boilerplate handles errors with <em>$http</em> and
    <em>$sailsSocket</em> requests. Note that this <em>magic</em> is done automatically via the error
    interceptor so you don't have to do anything extra for error handling. The error handling is done
    via the error interceptor that is attached to <em>$http</em> and <em>$sailsSocket</em> services.
</p>

<p>
    This interceptor will catch <em>all</em> errors from <em>$http</em> and <em>$sailsSocket</em>
    requests and show those to the user via the message service. Note that the message shown depends
    on the actual error response from the backend.
</p>

<h4>Functions in this example</h4>

<dl class="dl-horizontal">
    <dt>
        Custom messages
    </dt>
    <dd>
        Simple example to trigger different types of messages: <em>info, success, warning</em> and <em>error</em> with
        specified <em>title</em> and actual <em>message</em>.
    </dd>

    <dt>
        $http / $sailsSocket
    </dt>
    <dd>
        Examples to demonstrate invalid URL and not found record. These are handled automatically by <em>ErrorInterceptor</em>.
    </dd>
</dl>

<page-info-files data-files="{{files}}"></page-info-files>
